package com.chinasofti.Test01;


import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入学生信息");
        String nameage=sc.next();
        String []arr=nameage.split(",");
        Student stu=new Student();
        stu.setName(arr[0]);
        stu.setAge(arr[1]);
        System.out.println(stu.toString());
    }
}
